package prepare.huawei;

import java.util.Scanner;

/**
 * description: <a href="https://blog.csdn.net/qq_43536930/article/details/115479143">字符串分割</a>
 *
 * @author <a href="zhaoyingling12@163.com">simon zhao</a>
 * @since 2023/3/22
 */
public class StringSplit {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        while (input.hasNext()) {
            String s = input.nextLine();
            if (s.length() == 8) {
                System.out.println(s);
            }
            int cnt = 0;
            char[] chars = s.toCharArray();
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < chars.length; i++) {
                sb.append(chars[i]);
                cnt++;
                if (cnt == 8) {
                    System.out.println(sb);
                    sb = new StringBuilder();
                    cnt = 0;
                    continue;
                }
                if (i == chars.length - 1) {
                    while (cnt != 8) {
                        sb.append("0");
                        cnt++;
                    }
                    System.out.println(sb);
                    break;
                }
            }
        }
    }
}
